<!DOCTYPE html>
<html lang="en" xmlns:th="https://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>单条用户信息展示页</title>
</head>
<body>
    <p th:text="'姓名：' + ${user.name}"></p>
    <p th:text="'年龄：' + ${user.age}"></p>
    <p th:text="'生日：' + ${#dates.format(user.birthday, 'yyyy-MM-dd')}"></p>
    <hr />
    <div th:object="${user}">
        姓名：<span th:text="*{name}"></span>
        年龄：<span th:text="*{age}"></span>
        生日：<span th:text="*{#dates.format(birthday, 'yyyy-MM-dd')}"></span>
    </div>
</body>
</html>